package com.ruoyi.project.warehouseSystem.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.warehouseSystem.mapper.CIntwarehouseMapper;
import com.ruoyi.project.warehouseSystem.domain.CIntwarehouse;
import com.ruoyi.project.warehouseSystem.service.ICIntwarehouseService;

/**
 * 入库的申请Service业务层处理
 * 
 * @author wangshuo
 * @date 2021-07-18
 */
@Service
public class CIntwarehouseServiceImpl implements ICIntwarehouseService 
{
    @Autowired
    private CIntwarehouseMapper cIntwarehouseMapper;

    /**
     * 查询入库的申请
     * 
     * @param id 入库的申请ID
     * @return 入库的申请
     */
    @Override
    public CIntwarehouse selectCIntwarehouseById(Long id)
    {
        return cIntwarehouseMapper.selectCIntwarehouseById(id);
    }

    /**
     * 查询入库的申请列表
     * 
     * @param cIntwarehouse 入库的申请
     * @return 入库的申请
     */
    @Override
    public List<CIntwarehouse> selectCIntwarehouseList(CIntwarehouse cIntwarehouse)
    {
        return cIntwarehouseMapper.selectCIntwarehouseList(cIntwarehouse);
    }

    /**
     * 新增入库的申请
     * 
     * @param cIntwarehouse 入库的申请
     * @return 结果
     */
    @Override
    public int insertCIntwarehouse(CIntwarehouse cIntwarehouse)
    {
        return cIntwarehouseMapper.insertCIntwarehouse(cIntwarehouse);
    }

    /**
     * 修改入库的申请
     * 
     * @param cIntwarehouse 入库的申请
     * @return 结果
     */
    @Override
    public int updateCIntwarehouse(CIntwarehouse cIntwarehouse)
    {
        return cIntwarehouseMapper.updateCIntwarehouse(cIntwarehouse);
    }

    /**
     * 批量删除入库的申请
     * 
     * @param ids 需要删除的入库的申请ID
     * @return 结果
     */
    @Override
    public int deleteCIntwarehouseByIds(Long[] ids)
    {
        return cIntwarehouseMapper.deleteCIntwarehouseByIds(ids);
    }

    /**
     * 删除入库的申请信息
     * 
     * @param id 入库的申请ID
     * @return 结果
     */
    @Override
    public int deleteCIntwarehouseById(Long id)
    {
        return cIntwarehouseMapper.deleteCIntwarehouseById(id);
    }
}
